import Vue from 'vue'
import Router from 'vue-router'
import userManage from '../src/components/zys/usercontrol'
import mainType from '../src/components/typeManage/mainType'
import subType from '../src/components/typeManage/subType'
import SKUManage from '../src/components/XY/SKUtable'
import SPUManage from '../src/components/XY/SPUtable'
import packageManage from '../src/components/combination/combinationList_one'
import refund from '../src/components/TX/productRefund'
import orderManege from '../src/components/CH/order'
import authorityManage from '../src/components/ZF/limit'
import adminManage from '../src/components/ZF/administrator'
import logInfo from '../src/components/ljc/loginfor'
import designerComponent from '../src/components/zys/designerComponent'
import packageAddManage from '../src/components/combination/package_product'
import collectionAnalysis from '../src/components/dataAnalysis/collectionAnalysis'
import shoppingCartAnalysis from '../src/components/dataAnalysis/shoppingCartAnalysis'
import orderAnalysis from '../src/components/dataAnalysis/orderAnalysis'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'orderAnalysis',
      component: orderAnalysis
    },
    {
      path: '/mainType',
      name: 'mainType',
      component: mainType
    },
    {
      path: '/subType',
      name: 'subType',
      component: subType
    },
    {
      path: '/userManage',
      name: 'userManage',
      component: userManage
    },
    {
      path: '/SKUManage',
      name: 'SKUManage',
      component: SKUManage
    },
    {
      path: '/SPUManage',
      name: 'SPUManage',
      component: SPUManage
    },
    {
      path: '/packageAddManage',
      name: 'packageAddManage',
      component: packageAddManage
    },
    {
      path: '/packageManage',
      name: 'packageManage',
      component: packageManage
    },
    {
      path: '/refund',
      name: 'refund',
      component: refund
    },
    {
      path: '/orderManege',
      name: 'orderManege',
      component: orderManege
    },
    {
      path: '/authorityManage',
      name: 'authorityManage',
      component: authorityManage
    },
    {
      path: '/adminManage',
      name: 'adminManage',
      component: adminManage
    },
    {
      path: '/logInfo',
      name: 'logInfo',
      component: logInfo
    },
    {
      path: '/designerComponent',
      name: 'designerComponent',
      component: designerComponent
    },
    {
      path: '/collectionAnalysis',
      name: 'collectionAnalysis',
      component: collectionAnalysis
    },
    {
      path: '/shoppingCartAnalysis',
      name: 'shoppingCartAnalysis',
      component: shoppingCartAnalysis
    },
    {
      path: '/orderAnalysis',
      name: 'orderAnalysis',
      component: orderAnalysis
    }
  ]
})
